import {BrowserRouter,Route,Link} from "react-router-dom";
import Login from "./views/Login";
import Admin from "./views/Admin";

import './App.css';

function App() {
  return (
    <BrowserRouter>
      <Link to="/Login">登录</Link>||||
      <Link to={{pathname:"/Admin"}}>主页</Link>
      <hr/>
      <Route path="/Login" component={Login}></Route>     
      <hr/>
      <Route path="/Admin" component={Admin}></Route>
    </BrowserRouter>
  );
}

export default App;
